// 这里是登录页的接口
import request from '@/utils/request.js'
// 登录
export const userLoginServer = ({ username, password }) => {
  return request.post('/api/login', {
    username,
    password
  })
}
// 注册
export const userRegisterServer = ({ username, password, repassword }) => {
  return request.post('/api/reg', {
    username,
    password,
    repassword
  })
}
// 用户基本信息
export const userInfoServer = () => {
  return request.get('/my/userinfo')
}
